/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iddaa.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * 
 * @author aziz
 */

@SuppressWarnings("serial")
@Entity
public class PersonHistory implements Serializable {
	@Id
	@GeneratedValue
	private Long id;
	private Long personId;
	private String name;
	@Enumerated(EnumType.STRING)
	private Position position;
	private Date birthday;
	private Date contratStartDate;
	private Date contratFinishDate;
	@OneToOne
	private Team team;
	@Enumerated(EnumType.STRING)
	private PersonType type;
	@OneToOne
	private Country nationality;
	private String imageName;
	private Long formNumber;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPersonId() {
		return personId;
	}

	public void setPersonId(Long personId) {
		this.personId = personId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Date getContratStartDate() {
		return contratStartDate;
	}

	public void setContratStartDate(Date contratStartDate) {
		this.contratStartDate = contratStartDate;
	}

	public Date getContratFinishDate() {
		return contratFinishDate;
	}

	public void setContratFinishDate(Date contratFinishDate) {
		this.contratFinishDate = contratFinishDate;
	}

	public Team getTeam() {
		return team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

	public PersonType getType() {
		return type;
	}

	public void setType(PersonType type) {
		this.type = type;
	}

	public Country getNationality() {
		return nationality;
	}

	public void setNationality(Country nationality) {
		this.nationality = nationality;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public Long getFormNumber() {
		return formNumber;
	}

	public void setFormNumber(Long formNumber) {
		this.formNumber = formNumber;
	}
}
